#创建中英文词频词典、去停用词词典、索引文件
bin/testCreateDict.exe:bin/testCreateDict.o bin/productDict.o bin/splitTool.o
	g++ bin/testCreateDict.o  bin/productDict.o bin/splitTool.o -o bin/testCreateDict.exe -I bin/ -I include/
bin/testCreateDict.o:src/testCreateDict.cc
	g++ -c src/testCreateDict.cc -o bin/testCreateDict.o -g -I bin/ -I include/
#bin/splitTool.o:src/splitTool.cc
#	g++ -c src/splitTool.cc -o bin/splitTool.o -g -I include/ -I bin/
#bin/productDict.o:src/productDict.cc
#	g++ -c src/productDict.cc -o bin/productDict.o -g -I bin/ -I include/

#创建ripepage、offset、去重网页库
bin/test.exe:bin/test.o bin/pageLib.o bin/pageLibPrecessor.o bin/productDict.o bin/splitTool.o
	g++ bin/test.o bin/pageLib.o bin/pageLibPrecessor.o bin/productDict.o bin/splitTool.o -o bin/test.exe -g -I include -I bin -Lbin -ltinyxml2
bin/test.o:src/test.cc
	g++ -c src/test.cc -o bin/test.o -g -I include -I bin -Lbin -ltinyxml2
bin/pageLib.o:src/pageLib.cc
	g++ -c src/pageLib.cc -o bin/pageLib.o -g -I include -I bin -Lbin -ltinyxml2
bin/pageLibPrecessor.o:src/pageLibPrecessor.cc
	g++ -c src/pageLibPrecessor.cc -o bin/pageLibPrecessor.o -g -I bin -I include
bin/productDict.o:src/productDict.cc
	g++ -c src/productDict.cc -o bin/productDict.o -g -I bin/ -I include/
bin/splitTool.o:src/splitTool.cc
	g++ -c src/splitTool.cc -o bin/splitTool.o -g -I include/ -I bin/

	
.PHONY: clean

clean:
	rm -f bin/*.o
	rm -f bin/*.exe
